<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">

    <!-- Bootstrap CSS -->
    <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@4.4.1/dist/css/bootstrap.min.css" integrity="sha384-Vkoo8x4CGsO3+Hhxv8T/Q5PaXtkKtu6ug5TOeNV6gBiFeWPGFN9MuhOf23Q9Ifjh" crossorigin="anonymous">
</head>
<body>
<script src="https://cdn.jsdelivr.net/npm/jquery@3.4.1/dist/jquery.slim.min.js" integrity="sha384-J6qa4849blE2+poT4WnyKhv5vZF5SrPo0iEjwBvKU7imGFAV0wwj1yYfoRSJoZ+n" crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/popper.js@1.16.0/dist/umd/popper.min.js" integrity="sha384-Q6E9RHvbIyZFJoft+2mJbHaEWldlvI9IOYy5n3zV9zzTtmI3UksdQRVvoxMfooAo" crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@4.4.1/dist/js/bootstrap.min.js" integrity="sha384-wfSDF2E50Y2D1uUdj0O3uMBJnjuUD4Ih7YwaYd1iqfktj0Uod8GCExl3Og8ifwB6" crossorigin="anonymous"></script>
<form action="/book/update" method="post">
    <div class="form-group">
        <input type="hidden" name="bookID" th:value="${book.bookID}">
    </div>
    <div class="form-group">
        <label for="bookName">书籍名称</label>
        <input type="text" class="form-control" id="bookName" aria-describedby="bookName" required name="bookName" th:value="${book.bookName}">
    </div>
    <div class="form-group">
        <label for="detail">书籍简介</label>
        <input type="text" class="form-control" id="detail" th:value="${book.detail}" required name="detail">
    </div>
    <div class="form-group">
        <label for="bookCounts">书籍总数</label>
        <input type="text" class="form-control" id="bookCounts" th:value="${book.bookCounts}" required name="bookCounts">
    </div>
    <button type="submit" class="btn btn-primary">更新</button>
</form>

</body>
</html>